<?php
/**
 * OA计划模型
 */

declare (strict_types = 1);

namespace app\model\oa;

use think\Model;

class Plan extends Model
{
    // 设置表名
    protected $name = 'plan';
    
    // 设置主键
    protected $pk = 'id';
    
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;
    
    // 定义时间戳字段名
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    protected $deleteTime = 'delete_time';
    
    // 设置字段信息
    protected $schema = [
        'id'           => 'int',
        'admin_id'     => 'int',
        'did'          => 'int',
        'title'        => 'string',
        'content'      => 'string',
        'type'         => 'int',
        'remind_type'  => 'int',
        'remind_time'  => 'int',
        'start_time'   => 'int',
        'end_time'     => 'int',
        'create_time'  => 'int',
        'update_time'  => 'int',
        'delete_time'  => 'int',
    ];
}